home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok29.lha
/
CreateIcons
/
Lists.imp
< prev
next >
Wrap
Text File
|
1993-08-15
|
468b
|
28 lines
IMPLEMENTATION Lists;
PROCEDURE Add(VAR head: NodePtr; VAR el: Node);
BEGIN
el.next := head;
el.prev := NIL;
IF head#NIL THEN head.prev := ADR(el) END;
head := ADR(el);
END Add;
PROCEDURE Rem(VAR head: NodePtr; VAR el: Node);
BEGIN
IF el.next#NIL THEN el.next.prev := el.prev END;
IF el.prev#NIL THEN el.prev.next := el.next ELSE head := el.next END;
END Rem;
PROCEDURE Empty(head: NodePtr): BOOLEAN;
BEGIN
RETURN head=NIL
END Empty;
END Lists.